package com.lyy.demo.openapi.demo.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import com.lyy.demo.openapi.knife.SwaggerDisplayEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@SwaggerDisplayEnum(code = "key", desc = "remark")
@AllArgsConstructor
public enum UserTypeEnum {

    STUDENT("student", "学生"),
    TEACHER("teacher", "老师"),
    ;

    @JsonValue
    private final String key;
    private final String remark;
}
